\hypertarget{xfunction_8h_source}{}\doxysection{xfunction.\+h}
\mbox{\hyperlink{xfunction_8h}{浏览该文件的文档.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 \textcolor{preprocessor}{\#ifndef XFUNCTION\_H}}
\DoxyCodeLine{2 \textcolor{preprocessor}{\#define XFUNCTION\_H}}
\DoxyCodeLine{3 }
\DoxyCodeLine{4 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{xcoil_8h}{xcoil.h}}"{}}}
\DoxyCodeLine{5 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{xregister_8h}{xregister.h}}"{}}}
\DoxyCodeLine{6 \textcolor{preprocessor}{\#include <QDebug>}}
\DoxyCodeLine{7 }
\DoxyCodeLine{8 \textcolor{keyword}{class }\mbox{\hyperlink{class_x_function}{XFunction}}}
\DoxyCodeLine{9 \{}
\DoxyCodeLine{10 \textcolor{keyword}{public}:}
\DoxyCodeLine{11     \mbox{\hyperlink{class_x_function_a2ea9aa5fad55053a266532e303cfc159}{XFunction}}();}
\DoxyCodeLine{12     \textcolor{keyword}{explicit} \mbox{\hyperlink{class_x_function_a2ea9aa5fad55053a266532e303cfc159}{XFunction}}(\mbox{\hyperlink{class_x_coil}{XCoil}} *\mbox{\hyperlink{class_x_function_a72afc9752303dc68c81b09b5f97cb2dd}{coilA}});}
\DoxyCodeLine{13     \textcolor{keyword}{explicit} \mbox{\hyperlink{class_x_function_a2ea9aa5fad55053a266532e303cfc159}{XFunction}}(\mbox{\hyperlink{class_x_coil}{XCoil}} *\mbox{\hyperlink{class_x_function_a72afc9752303dc68c81b09b5f97cb2dd}{coilA}}, \mbox{\hyperlink{class_x_coil}{XCoil}} *\mbox{\hyperlink{class_x_function_a08f8b714a87a0af9c504bdbbc9fdbf54}{coilB}});}
\DoxyCodeLine{14     \textcolor{keyword}{explicit} \mbox{\hyperlink{class_x_function_a2ea9aa5fad55053a266532e303cfc159}{XFunction}}(\mbox{\hyperlink{class_x_register}{XRegister}} *\mbox{\hyperlink{class_x_function_a3be0798e6de584f2e33f6bfd76a85792}{registerA}}, \textcolor{keywordtype}{double} value);}
\DoxyCodeLine{15     \textcolor{keyword}{explicit} \mbox{\hyperlink{class_x_function_a2ea9aa5fad55053a266532e303cfc159}{XFunction}}(\mbox{\hyperlink{class_x_register}{XRegister}} *\mbox{\hyperlink{class_x_function_a3be0798e6de584f2e33f6bfd76a85792}{registerA}}, \mbox{\hyperlink{class_x_register}{XRegister}} *\mbox{\hyperlink{class_x_function_a9f7e106f034c0d0d1a8613580e84ef4d}{registerB}});}
\DoxyCodeLine{16     \textcolor{keyword}{explicit} \mbox{\hyperlink{class_x_function_a2ea9aa5fad55053a266532e303cfc159}{XFunction}}(\mbox{\hyperlink{class_x_register}{XRegister}} *\mbox{\hyperlink{class_x_function_a3be0798e6de584f2e33f6bfd76a85792}{registerA}}, \mbox{\hyperlink{class_x_register}{XRegister}} *\mbox{\hyperlink{class_x_function_a9f7e106f034c0d0d1a8613580e84ef4d}{registerB}}, \textcolor{keywordtype}{int} \mbox{\hyperlink{class_x_function_a0baa2c9f01fa224aaffc074edcc7419e}{registerNum}});}
\DoxyCodeLine{17 }
\DoxyCodeLine{18     \mbox{\hyperlink{class_x_function_a55161b0fc7cc2da9ae06c91e83d8abd8}{\string~XFunction}}();}
\DoxyCodeLine{19 }
\DoxyCodeLine{20 \textcolor{keyword}{public}:}
\DoxyCodeLine{21     \textcolor{comment}{//coil}}
\DoxyCodeLine{22     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_function_a0a73e9981897a36d241788e45eea4ec8}{setCoil}}();}
\DoxyCodeLine{23     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_function_a3c5f1b12925b0541c6e750932453d409}{resetCoil}}();}
\DoxyCodeLine{24     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_function_a84536aef96210b6f4fe526d7fc663f76}{reverseCoil}}();}
\DoxyCodeLine{25     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_function_a3e178f1348a33ae4de6323e2e106270e}{copyCoil}}();}
\DoxyCodeLine{26 }
\DoxyCodeLine{27     \textcolor{comment}{//register}}
\DoxyCodeLine{28     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_function_ade1e88b58d8e44f150a850e68ee1895f}{setRegister}}();}
\DoxyCodeLine{29     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_function_a3462a6a8b61b631ac51eb192f5712d2d}{copyRegister}}();}
\DoxyCodeLine{30 \textcolor{comment}{//    void copyRegisterBlock();}}
\DoxyCodeLine{31 }
\DoxyCodeLine{32 \textcolor{keyword}{private}:}
\DoxyCodeLine{33     \mbox{\hyperlink{class_x_coil}{XCoil}} *\mbox{\hyperlink{class_x_function_a72afc9752303dc68c81b09b5f97cb2dd}{coilA}};}
\DoxyCodeLine{34     \mbox{\hyperlink{class_x_coil}{XCoil}} *\mbox{\hyperlink{class_x_function_a08f8b714a87a0af9c504bdbbc9fdbf54}{coilB}};}
\DoxyCodeLine{35 }
\DoxyCodeLine{36     \mbox{\hyperlink{class_x_register}{XRegister}} *\mbox{\hyperlink{class_x_function_a3be0798e6de584f2e33f6bfd76a85792}{registerA}};}
\DoxyCodeLine{37     \mbox{\hyperlink{class_x_register}{XRegister}} *\mbox{\hyperlink{class_x_function_a9f7e106f034c0d0d1a8613580e84ef4d}{registerB}};}
\DoxyCodeLine{38     \textcolor{keywordtype}{double} \mbox{\hyperlink{class_x_function_a9378664dfc1b505a900e892b78f90139}{setValue}};}
\DoxyCodeLine{39     \textcolor{keywordtype}{int} \mbox{\hyperlink{class_x_function_a0baa2c9f01fa224aaffc074edcc7419e}{registerNum}};}
\DoxyCodeLine{40 \};}
\DoxyCodeLine{41 }
\DoxyCodeLine{42 \textcolor{comment}{//声明XFunction的函数指着}}
\DoxyCodeLine{43 \textcolor{keyword}{typedef} void (\mbox{\hyperlink{class_x_function}{XFunction}}::*\mbox{\hyperlink{xfunction_8h_afef433ae7eaa4880713115352c9e3718}{Function}})(void);}
\DoxyCodeLine{44 }
\DoxyCodeLine{45 \textcolor{preprocessor}{\#endif }\textcolor{comment}{// XFUNCTION\_H}}

\end{DoxyCode}
